home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2831 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: ifi.uio.no!usenet
  2. From: ludvigp@ifi.uio.no (Ludvig Pedersen)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: BUG IN "STATUS" COMMAND FOUND
  5. Date: 5 Feb 1996 19:50:42 GMT
  6. Organization: Dept. of Informatics, University of Oslo, Norway
  7. Message-ID: <1084.6609T1207T906@ifi.uio.no>
  8. References: <4f403j$qpm@jeack.apana.org.au>
  9. NNTP-Posting-Host: surt.ifi.uio.no
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  11.  
  12. >Hi All,
  13. >I have located a bug in the status command, under workbench 3, and it goes
  14. >like this:
  15. >7. System:> Status 2147483647
  16. >Causes the shell from which the command was initiated, to freeze, until a ^C
  17. >is issued.
  18. >7. System:> Status 2147483648
  19. >Returns an error "Process -2147483648 does not exist" - which, obviously, is
  20. >true, but where did it  get the negative sign from?
  21. >7. System:> Status 2147483649
  22. >Returns an error "Process -2147483647 does not exist" - which again is true,
  23. >but -2147483647 wasn't  the number I entered, was it?
  24. >7. System:> Status 2147483650
  25. >Returns an error "Bad number" which indicates to us that 2147483649 is the
  26. >ceiling value.
  27. >I know this bug plays no trouble in the workings of the system, but it's a
  28. >bug nonetheless, and will  give Escom/AmiTech something to do =)
  29.  
  30. This is not a bug but a simple overflow!!!
  31.  
  32. 2147483648 = $80000000 (Which is -2147483648)
  33.  
  34. The largest number you can store in an signed integer
  35. is 2147483647 (=$7fffffff)
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42. <sb>Ludde - Amiga Demo Coder
  43. <sb>Virtual Reality & Official Be developer
  44. <sb>ludvigp@ifi.uio.no
  45.  
  46.